import axios from "axios";
import {Result} from "@/types/global.ts";
export const queryList = (params:any)=>{
    return axios.get<Result>('/sys/dict-item/list',{params})
}
export const add = (data:any)=>{
    return axios.post<Result>('/sys/dict-item/add',data)
}
export const edit = (data:any)=>{
    return axios.post<Result>('/sys/dict-item/update',data)
}
export const del = (id:string)=>{
    return axios.delete('/sys/dict-item/delete',{params:{id}})
}